import React,{useState,useEffect} from 'react'
import { Space, Table, Tag } from 'antd';
import axios from "../../utils/axios"
import {Outlet} from "react-router-dom"
function TestPaper() {
    let [columns,setColums] = useState([
    {
      title: '姓名',
      dataIndex: 'name',
      key: 'name',
      render: (text) => <a>{text}</a>,
    },
    {
      title: '年龄',
      dataIndex: 'age',
      key: 'age',
    },
    {
      title: '地址',
      dataIndex: 'address',
      key: 'address',
    },
    {
      title: 'Action',
      key: 'action',
      render: (_, record) => (
        <Space size="middle">
          <a>Invite {record.name}</a>
          <a>Delete</a>
        </Space>
      ),
    },
  ])
  let [arr,setArr] = useState([])
  useEffect(()=>{
      axios.get("/api/list").then(res=>{
          setArr(res.data)
      })
  },[])
  return (
    <div>
        {/* <Table columns={columns} dataSource={arr} /> */}
        <Outlet></Outlet>
    </div>
  )
}

export default TestPaper